/<template>
  <div>
      <p @click="$router.back()">返回</p>
      <div class="jian" v-if="flag">
          <h2>兼职类型</h2>
           <span v-for="item,index in list[0].jian" :key="index">
                {{item.type}}
           </span>
      </div>
      <div class="qu" v-if="flag">
          <h2>工作区域</h2>
          <span v-for="item,index in list[0].qu" :key="index">
             {{item.city}}
          </span>
      </div>
  </div>
</template>

<script>
import axios from "axios"
export default {
    data(){
        return{
            list:[],
            flag:false
        }
    },
 mounted(){
    axios.get("set").then((res)=>{
        if(res.data[0]){
            this.flag=true
        }
         this.list=res.data
         console.log(res.data)
    })
 }
}
</script>

<style lang="scss">
.jian{
    width:100%;
    height:2rem;
     span{
         display: inline-block;
        margin:.04rem .04rem;
     }
}
.qu{
    width:100%;
    height:2rem;
     span{
          display: inline-block;
        margin:.04rem .04rem; 
     }
}
</style>